package com.bjqh.edu.UI.Activity.Live;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;


import com.baijiahulian.live.ui.LiveSDKWithUI;

import com.baijiahulian.livecore.context.LiveRoom;
import com.bjqh.edu.R;


public class LiveActivity extends AppCompatActivity {
    LiveRoom liveRoom;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_live);
        LiveSDKWithUI.enterRoom(LiveActivity.this, "d8ba6y", "admin", new LiveSDKWithUI.LiveSDKEnterRoomListener() {


            @Override
            public void onError(String s) {
                Toast.makeText(LiveActivity.this,s,Toast.LENGTH_SHORT).show();
            }



        });
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        liveRoom.quitRoom();
    }
}
